package com.example.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.Date;

@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class Play implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableField("id")
    @TableId(type = IdType.AUTO)
    private Long id;

    @TableField("sports")
    @ApiModelProperty(value = "运动项目")
    private String sports;

    @TableField("place")
    @ApiModelProperty(value = "运动场地")
    private String place;

    @TableField("time")
    @ApiModelProperty(value = "运动时间")
    private LocalDateTime time;

    @TableField("needNum")
    @ApiModelProperty(value = "所需人数")
    private Integer needNum;
}
